package com.paireach.szwolaiyun.mode;

/**
 * Created by Administrator on 2016/6/22.
 */
public class SignMode {
    private String statusCode;//运单状态
    private String statusName;//状态文字描述
    private String lon;//经纬度
    private String lat;//经纬度
    private String date;//预约时间
    private String address; //装货工厂地点
    private String code;//运单号
    private String warehouseType;//内仓 外仓
    private String scSupportBking;// 是否排队

    public String getCode() {
        return code;
    }

    public String getWarehouseType() {
        return warehouseType;
    }

    public void setWarehouseType(String warehouseType) {
        this.warehouseType = warehouseType;
    }

    public String getScSupportBking() {
        return scSupportBking;
    }

    public void setScSupportBking(String scSupportBking) {
        this.scSupportBking = scSupportBking;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(String statusCode) {
        this.statusCode = statusCode;
    }

    public String getStatusName() {
        return statusName;
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }

    public String getLon() {
        return lon;
    }

    public void setLon(String lon) {
        this.lon = lon;
    }

    public String getLat() {
        return lat;
    }

    public void setLat(String lat) {
        this.lat = lat;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }


    public static SignMode changeDispatchModeToSignMode(SignMode signMode,DispatchMode dispatchMode){

        signMode.setDate(dispatchMode.getDate().replace("-","/")+"   "+dispatchMode.getPlanDeliverStartTime()+"-"+dispatchMode.getPlanDeliverEndTime());
        signMode.setStatusCode(dispatchMode.getStatusCode());
        signMode.setStatusName(dispatchMode.getStatusName());
        signMode.setAddress(dispatchMode.getDeliveryPlantAddress());
        signMode.setLat(dispatchMode.getSourceLat());
        signMode.setLon(dispatchMode.getSourceLng());
        signMode.setCode(dispatchMode.getCode());
        signMode.setScSupportBking(dispatchMode.getScSupportBking());
        signMode.setWarehouseType(dispatchMode.getWarehouseType());
        return  signMode;
    }
}
